{extend name="public/base" /}

{block name="content"}
<div class="container-fluid">
    <div class="breadcrumb-wrapper row">
        <div class="col-12 col-lg-3 col-md-6">
            <h4 class="page-title">管理员列表</h4>
        </div>
        <div class="col-12 col-lg-9 col-md-6">
            <ol class="breadcrumb float-right">
                <li><a href="{:url('Manage/home')}">控制台</a></li>
                <li class="active"> / 管理员列表</li>
            </ol>
        </div>
    </div>
</div>

<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header border-bottom">
                    <a href="{:url('Admin/addAdmin')}" class="btn btn-common">添加管理员</a>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-bordered table-striped table-hover">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>用户名</th>
                                <th>备注</th>
                                <th>更新时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="datas" id="item"}
                            <tr>
                                <td>{$item.id}</td>
                                <td>{$item.username}</td>
                                <td>{$item.remark}</td>
                                <td>{$item.update_time}</td>
                                <td>
                                    <a href="{:url('Admin/delAdmin',['id'=>$item.id])}" class="btn btn-danger btn-sm" onclick="return confirm('确定删除此项?')"><span class="lni-trash"></span></a>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="text-center">
    {$datas|raw}
</div>

{/block}